######################
# ANALYSIS QUESTIONS #
######################

def question2():
  answerDiscount = 0.9
  answerNoise = 0.01
  return answerDiscount, answerNoise
  
# close exit, risk cliff
def question3a():
  answerDiscount = 0.9
  answerNoise = 0.2
  answerLivingReward = -3
  return answerDiscount, answerNoise, answerLivingReward
  # If not possible, return 'NOT POSSIBLE'

# close exit, avoid cliff
def question3b():
  answerDiscount = 0.2
  answerNoise = 0.1
  answerLivingReward = -1
  return answerDiscount, answerNoise, answerLivingReward
  # If not possible, return 'NOT POSSIBLE'

# distant exit, risk cliff
def question3c():
  answerDiscount = 0.9
  answerNoise = 0.0
  answerLivingReward = 0
  return answerDiscount, answerNoise, answerLivingReward
  # If not possible, return 'NOT POSSIBLE'

# distant exit, avoid cliff
def question3d():
  answerDiscount = 0.9
  answerNoise = 0.1
  answerLivingReward = 0
  return answerDiscount, answerNoise, answerLivingReward
  # If not possible, return 'NOT POSSIBLE'

# avoid both exits
def question3e():
  answerDiscount = 0.9
  answerNoise = 0.1
  answerLivingReward = 100
  return answerDiscount, answerNoise, answerLivingReward
  # If not possible, return 'NOT POSSIBLE'

def question6():
    answerEpsilon = None
    answerLearningRate = None
    return 'NOT POSSIBLE'
  # If not possible, return 'NOT POSSIBLE'
  
if __name__ == '__main__':
  print 'Answers to analysis questions:'
  import analysis
  for q in [q for q in dir(analysis) if q.startswith('question')]:
    response = getattr(analysis, q)()
    print '  Question %s:\t%s' % (q, str(response))
